package ptumall.utils;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    private Long total;
    private Integer page;
    private Integer pageSize;
    private List<T> list;

    // 手动添加构造函数
    public PageResult(Long total, Integer page, Integer pageSize, List<T> list) {
        this.total = total;
        this.page = page;
        this.pageSize = pageSize;
        this.list = list;
    }
}
